import request from '@/utils/request'
import { memberApi } from '@/utils/comm'

// 查询用户列表
export function listMemberUser(query) {
  return request({
    url: `${memberApi}/user/list`,
    method: 'get',
    params: query
  })
}

// 查询用户详细
export function getMemberUser(id) {
  return request({
    url: `${memberApi}/user/` + id,
    method: 'get'
  })
}

// 通过手机号获取用户信息
export function getByPhone(phone) {
  return request({
    url: `${memberApi}/user/getByPhone/${phone}`,
    method: 'post',
  })
}

// 查询第三方用户列表
export function listSocialUser(query) {
  return request({
    url: `${memberApi}/socialUser/list`,
    method: 'get',
    params: query
  })
}

// 查询飞手第三方用户列表
export function listPilotSocialUser(query) {
  return request({
    url: `${memberApi}/pilotSocialUser/list`,
    method: 'get',
    params: query
  })
}